package com.luu.game.utils;

import java.util.*;

public class TestDemo {

    public static void main(String[] args) {
        new TestDemo().test2();
    }

    public void init(){
        System.out.println("testDemo");
    }

    public void test(){
        Double test = 100 * -0.25 + 100;
        Double test1 = 100 * 0.25 + 100;
        System.out.println(test);
        System.out.println(test1);

    }

    public void test1(){
        for (int i = 0; i < 100; i++) {
            int nextInt = new Random().nextInt(100)+1;
            if (nextInt == 0)
                System.out.println("nextInt=0");
            nextInt = nextInt+1;
            System.out.println(nextInt);
        }
    }

    public void test2(){
        String text = "A";
        final String[] strings = text.split(",");
        final List<String> stringList = Arrays.asList(strings);
        System.out.println(strings.toString());
        System.out.println(stringList.toString());

    }

}
